<table border="0" cellpadding="0" cellspacing="4" width="100%">
	<tr>
		<td>
			<table border="0" cellpadding="0" cellspacing="0">
				<tr>
					<td width="14"></td>
					<td width="120">
						<a href="index.php?admin=rss&axn=insert_rss">Alta de RSS</a>
					</td>
				</tr>
			</table>
		</td>
	</tr>
	<tr><td height="5"></td></tr>
	<tr>
		<td>
			<table border="0" cellpadding="0" cellspacing="0" width="100%">
				<?php
					$rssQty = 0;
					$rssCountString = "select count(*) rss_qty from rss";
					$rssCountQuery = dbSelect($rssCountString) or die("Error en ".$rssCountString." ".mysql_error());
					if ($rssCountResult = mysql_fetch_array($rssCountQuery)) {
						$qtyRSS = $rssCountResult['rss_qty'];
					}
					if($qtyRSS>0) {
						echo "<tr><td>Se encontraron ".$qtyRSS." RSS</td></tr>";

						$rssShowString = "select rss_id,url from rss order by insert_dt desc";
						$rssShowQuery = dbSelect($rssShowString) or die("Error en select ".$rssShowString." ".mysql_error());
						?>
						<tr><td height="5"></td></tr>
						<tr><td><table border='1' cellpadding='0' cellspacing='0' width='100%'>
						<tr><td bgcolor="#CCCCCC" align="center"><b>RSS</b></td><td bgcolor="#CCCCCC" align="center"><b>ACCIONES</b></td></tr>
						<?php
						while($rssShowResult = mysql_fetch_array($rssShowQuery)) {
							echo "<tr>";
								//echo "<td>".$rssShowResult['rss_id']."</td>";
								echo "<td width='100%'><a href='".$rssShowResult['url']."' target='_blank'>".$rssShowResult['url']."</a></td>";
								echo "<td align='right'><table border='0' cellspacing='0' cellpadding='0' align='center'><tr>";
								
								echo "<td><a href='index.php?admin=rss&axn=update_rss&rss_id=".$rssShowResult['rss_id']."'><img src='../img/b_edit.png' border='0'></a></td>";
								/*if($rssShowResult['status']=='A') {
									echo "<a href='rss/operations.php?axn=inactivate_rss&rss_id=".$rssShowResult['rss_id']."'><img src='../img/b_drop.png' border='0'></a>";
								} else {
									echo "<a href='rss/operations.php?axn=activate_rss&rss_id=".$rssShowResult['rss_id']."'><img src='../img/s_okay.png' border='0'></a>";
								}*/
								echo "</tr></table></td></tr>";
						}
						echo "</table></td></tr>";
					} else {
						echo "<tr><td>No hay rss cargados</td></tr>";
					}


				?>
			</table>
		</td>
	</tr>
</table>